package com.gao.web.dao;

import com.gao.web.pojo.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    Customer selectById(int id);

    int insertCustomer(Customer customer);

    int updateCustomer(Customer customer);

    List<Customer> findUsername(@Param("username") String username, @Param("phone") String phone);

    Customer selectByName(String username);

    Customer findUsernameAndPassword(Customer user);

    List<Customer> customerfindAll();

    int regis(Customer user);

    int update(Customer user);

    int delete(Customer user);
}
